package org.mybatis3.test1;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test2 {
    public static void main(String[] args) {
        ApplicationContext context=new ClassPathXmlApplicationContext("applicationContext.xml");
        Greeting g1=(Greeting)context.getBean("guiZi");
        Greeting g2=(Greeting)context.getBean("gaZi");
        g1.say();
        g2.say();
    }
}
